package com.future.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.future.domain.DTO.UserDTO;
import com.future.domain.StudentClass;
import com.future.domain.UserClass;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserClassMapper extends BaseMapper<UserClass> {
    @Select("SELECT COUNT(1) FROM user_class WHERE user_id = #{userId} AND class_id = #{classId}")
    Integer countByUserIdAndClassId(@Param("userId") Long userId, @Param("classId") Long classId);
}
